/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package spoc;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import spoc.classes.BancoDeDados;
import spoc.interfaces.JanelaPrincipal;

/**
 *
 * @author dola
 */

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String nativeLF = UIManager.getSystemLookAndFeelClassName();
        
        try {
            UIManager.setLookAndFeel(nativeLF);
        } catch (InstantiationException e) {
        } catch (ClassNotFoundException e) {
        } catch (UnsupportedLookAndFeelException e) {
        } catch (IllegalAccessException e) {
        }
        try {
            BancoDeDados.Connect();
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        JanelaPrincipal janela = new JanelaPrincipal();
        janela.setVisible(true);
    }

}
